package com.ruyuan.eshop.data.migrate.tool.model.order;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhonghuashishan
 */
@TableName("ruyuan_tend_consistency_task")
public class TendConsistencyTaskDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    /**
     * 用户自定义的任务名称，如果没有则使用方法签名
     */
    private String taskId;

    /**
     * 执行状态
     */
    private Integer taskStatus;

    /**
     * 执行次数
     */
    private Integer executeTimes;

    /**
     * 执行时间
     */
    private Long executeTime;

    /**
     * 参数的类路径名称
     */
    private String parameterTypes;

    /**
     * 方法名
     */
    private String methodName;

    /**
     * 方法签名
     */
    private String methodSignName;

    /**
     * 执行间隔秒
     */
    private Integer executeIntervalSec;

    /**
     * 延迟时间：单位秒
     */
    private Integer delayTime;

    /**
     * 任务参数
     */
    private String taskParameter;

    /**
     * 执行模式：1、立即执行 2、调度执行
     */
    private Integer performanceWay;

    /**
     * 线程模型 1、异步 2、同步
     */
    private Integer threadWay;

    /**
     * 执行的error信息
     */
    private String errorMsg;

    /**
     * 告警表达式
     */
    private String alertExpression;

    /**
     * 告警逻辑的的执行beanName
     */
    private String alertActionBeanName;

    /**
     * 降级逻辑的的类路径
     */
    private String fallbackClassName;

    /**
     * 降级失败时的错误信息
     */
    private String fallbackErrorMsg;

    /**
     * 任务分片键
     */
    private Long shardKey;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModified;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Integer getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(Integer taskStatus) {
        this.taskStatus = taskStatus;
    }

    public Integer getExecuteTimes() {
        return executeTimes;
    }

    public void setExecuteTimes(Integer executeTimes) {
        this.executeTimes = executeTimes;
    }

    public Long getExecuteTime() {
        return executeTime;
    }

    public void setExecuteTime(Long executeTime) {
        this.executeTime = executeTime;
    }

    public String getParameterTypes() {
        return parameterTypes;
    }

    public void setParameterTypes(String parameterTypes) {
        this.parameterTypes = parameterTypes;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodSignName() {
        return methodSignName;
    }

    public void setMethodSignName(String methodSignName) {
        this.methodSignName = methodSignName;
    }

    public Integer getExecuteIntervalSec() {
        return executeIntervalSec;
    }

    public void setExecuteIntervalSec(Integer executeIntervalSec) {
        this.executeIntervalSec = executeIntervalSec;
    }

    public Integer getDelayTime() {
        return delayTime;
    }

    public void setDelayTime(Integer delayTime) {
        this.delayTime = delayTime;
    }

    public String getTaskParameter() {
        return taskParameter;
    }

    public void setTaskParameter(String taskParameter) {
        this.taskParameter = taskParameter;
    }

    public Integer getPerformanceWay() {
        return performanceWay;
    }

    public void setPerformanceWay(Integer performanceWay) {
        this.performanceWay = performanceWay;
    }

    public Integer getThreadWay() {
        return threadWay;
    }

    public void setThreadWay(Integer threadWay) {
        this.threadWay = threadWay;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getAlertExpression() {
        return alertExpression;
    }

    public void setAlertExpression(String alertExpression) {
        this.alertExpression = alertExpression;
    }

    public String getAlertActionBeanName() {
        return alertActionBeanName;
    }

    public void setAlertActionBeanName(String alertActionBeanName) {
        this.alertActionBeanName = alertActionBeanName;
    }

    public String getFallbackClassName() {
        return fallbackClassName;
    }

    public void setFallbackClassName(String fallbackClassName) {
        this.fallbackClassName = fallbackClassName;
    }

    public String getFallbackErrorMsg() {
        return fallbackErrorMsg;
    }

    public void setFallbackErrorMsg(String fallbackErrorMsg) {
        this.fallbackErrorMsg = fallbackErrorMsg;
    }

    public Long getShardKey() {
        return shardKey;
    }

    public void setShardKey(Long shardKey) {
        this.shardKey = shardKey;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        return "RuyuanTendConsistencyTaskDO{" +
        "id=" + id +
        ", taskId=" + taskId +
        ", taskStatus=" + taskStatus +
        ", executeTimes=" + executeTimes +
        ", executeTime=" + executeTime +
        ", parameterTypes=" + parameterTypes +
        ", methodName=" + methodName +
        ", methodSignName=" + methodSignName +
        ", executeIntervalSec=" + executeIntervalSec +
        ", delayTime=" + delayTime +
        ", taskParameter=" + taskParameter +
        ", performanceWay=" + performanceWay +
        ", threadWay=" + threadWay +
        ", errorMsg=" + errorMsg +
        ", alertExpression=" + alertExpression +
        ", alertActionBeanName=" + alertActionBeanName +
        ", fallbackClassName=" + fallbackClassName +
        ", fallbackErrorMsg=" + fallbackErrorMsg +
        ", shardKey=" + shardKey +
        ", gmtCreate=" + gmtCreate +
        ", gmtModified=" + gmtModified +
        "}";
    }
}
